package cn.usian.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "person")
public class Person {
    private int id;
    //id
    private String name;
    //名称
    private List hobby;
    //爱好
    private String[] family;
    //家庭成员
    private Map map;
    //宠物
    private Pet pet;
}
